package cn.lg.soar.system.general.service.impl;

import cn.lg.soar.database.base.service.impl.BaseServiceImpl;
import cn.lg.soar.system.general.entity.UserConfigGroup;
import cn.lg.soar.system.general.mapper.UserConfigGroupMapper;
import cn.lg.soar.system.general.service.IUserConfigGroupService;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

/**
 * 配置定义
 * @author luguoxiang
 * @since 2023-07-13
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class UserConfigGroupServiceImpl extends BaseServiceImpl<UserConfigGroupMapper, UserConfigGroup> implements IUserConfigGroupService {

    @Override
    public UserConfigGroup getByCode(String code) {
        return getOne(
                Wrappers.<UserConfigGroup>lambdaQuery().eq(UserConfigGroup::getCode, code)
        );
    }

}
